package cs2114.antiFingerMines;


//-------------------------------------------------------------------------
/**
*  class to store coordinates of each cell.
*
 * @author Blake Whaley
 * @author Graham McLaughlin (gjm1324)
 * @author William Vuong (wnvuong)
 * @version 2012.29.4
*/
public class Location
{
 private float xlocation;
 private float ylocation;

 // ----------------------------------------------------------
 /**
  * Create a new Location object.
  * @param xloc is the xlocation
  * @param yloc is the ylocation
  */
 public Location(float xloc, float yloc)
 {
     xlocation = xloc;
     ylocation = yloc;
 }

 /**
  * gets the xlocation
  * @return float the xlocation
  */
 public float getXloc()
 {
     return xlocation;
 }

 /**
  * gets the ylocation
  * @return float the ylocation
  */
 public float getYloc()
 {
     return ylocation;
 }

 /**
  * sets the xlocation
  * @param xloc is the xlocation
  */
 public void setXloc(float xloc)
 {
     xlocation = xloc;
 }

 /**
  * sets the ylocation
  * @param yloc is the ylocation
  */
 public void setYloc(float yloc)
 {
     ylocation = yloc;
 }
}
